import 'package:hotpot/generated/json/base/json_convert_content.dart';
import 'package:hotpot/models/table_count.dart';

TableCount $TableCountFromJson(Map<String, dynamic> json) {
	final TableCount tableCount = TableCount();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		tableCount.id = id;
	}
	final int? orders = jsonConvert.convert<int>(json['orders']);
	if (orders != null) {
		tableCount.orders = orders;
	}
	final int? changes = jsonConvert.convert<int>(json['changes']);
	if (changes != null) {
		tableCount.changes = changes;
	}
	final int? skipChanges = jsonConvert.convert<int>(json['skip_changes']);
	if (skipChanges != null) {
		tableCount.skipChanges = skipChanges;
	}
	return tableCount;
}

Map<String, dynamic> $TableCountToJson(TableCount entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['orders'] = entity.orders;
	data['changes'] = entity.changes;
	data['skip_changes'] = entity.skipChanges;
	return data;
}